package club.beimeng.eduservice.service;

import club.beimeng.eduservice.entity.CoursePublish.CoursePublishVo;
import club.beimeng.eduservice.entity.EduCourse;
import club.beimeng.eduservice.entity.vo.CourseInfoQuery;
import club.beimeng.eduservice.entity.vo.CourseQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-07-25
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoQuery infoQuery);

    CourseInfoQuery getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoQuery courseInfo);

    CoursePublishVo getPublishCourseInfo(String courseId);

    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    boolean removeCourseById(String id);
}
